package app.gt.screen.searchresult;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import app.gt.R;
import app.gt.screen.profile.StartScreen;
import app.gt.service.sharing.SharingStart;

public class SelectedRoute extends Activity implements OnClickListener{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.selectedroutescreen);
		startInit();
	}

	private void startInit() {
		// TODO Auto-generated method stub
		LinearLayout shareLine = (LinearLayout)findViewById(R.id.share_with_friens_route);
		shareLine.setOnClickListener(this);
		Button finish = (Button)findViewById(R.id.Continue_trip_confirmed);
		finish.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.share_with_friens_route:
		Intent ShareT = new Intent(this, SharingStart.class);
		startActivity(ShareT);
			break;
		case R.id.Continue_trip_confirmed:
			Intent Backprofile = new Intent(this,StartScreen.class);
			startActivity(Backprofile);
			break;
		}
	}

}
